/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.trees;

/**
 *
 * @author WORKSPOT2
 */
public class PlayerRatio implements Comparable<PlayerRatio>
{

    private int playerId;
    private int currentRatio;
    
    public PlayerRatio(int playerId, int currentRatio)
    {
        this.playerId = playerId;
        this.currentRatio = currentRatio;
    }

    public int getPlayerId()
    {
        return playerId;
    }

    public int getCurrentRatio()
    {
        return currentRatio;
    }
    
    @Override
    public String toString()
    {
       return playerId + ":" + currentRatio;
    }

    @Override
    public int compareTo(PlayerRatio o)
    {
        return -(this.currentRatio - o.currentRatio); 
    }
}
